home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktimeintro / play movie / start code / exportmovie.c next >
Encoding:
C/C++ Source or Header  |  2000-10-06  |  756 b   |  32 lines

  1. /*
  2.     File:        ExportMovie.c
  3.     
  4.     Contains:    QuickTime sample code
  5.  
  6.     Copyright:    © 2000 by Apple Computer, Inc. All rights reserved
  7.  
  8.  
  9. */
  10.  
  11. #include <Script.h>
  12. #include "ExportMovie.h"
  13.  
  14. void SimpleExportMovie(Movie theMovie, FSSpec *theFSSpec)
  15. {
  16.     long exportFlags = showUserSettingsDialog |
  17.                        movieToFileOnlyExport |
  18.                        movieFileSpecValid |
  19.                        createMovieFileDeleteCurFile;
  20.  
  21.     // If the movie is currently playing stop it
  22.     if (GetMovieRate(theMovie))
  23.         StopMovie(theMovie);
  24.  
  25.     // use the default progress procedure, if any
  26.     SetMovieProgressProc(theMovie,                    // the movie specifier
  27.                          (MovieProgressUPP)-1L,        // pointer to a progress function; -1 indicades default
  28.                          0);                        // reference constant
  29.     
  30. // Insert ConvertMovieToFile.clp here...
  31.  
  32. }